inherited fmFoodFactorP: TfmFoodFactorP
  Left = 502
  Top = 217
  Width = 812
  Height = 566
  Caption = #1050#1086#1101#1092#1092#1080#1094#1080#1077#1085#1090#1099' '#1076#1083#1103' '#1088#1072#1089#1095#1077#1090#1072' '#1089#1088#1077#1076#1085#1077#1075#1086' '#1079#1085#1072#1095#1077#1085#1080#1103
  Constraints.MinHeight = 566
  Constraints.MinWidth = 812
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  inherited sbBottom: TStatusBar
    Top = 501
    Width = 796
  end
  inherited Panel1: TPanel
    Width = 796
    Visible = False
    inherited BitBtn1: TBitBtn
      Left = 634
    end
    inherited BitBtn2: TBitBtn
      Left = 722
    end
  end
  object cxGrid3: TcxGrid [2]
    Left = 0
    Top = 45
    Width = 796
    Height = 456
    Align = alClient
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -13
    Font.Name = 'Tahoma'
    Font.Style = []
    ParentFont = False
    TabOrder = 2
    LookAndFeel.Kind = lfStandard
    object tvmenu: TcxGridDBBandedTableView
      NavigatorButtons.ConfirmDelete = False
      OnEditing = tvmenuEditing
      DataController.DataSource = dsFactorp
      DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoGroupsAlwaysExpanded]
      DataController.Summary.DefaultGroupSummaryItems = <>
      DataController.Summary.FooterSummaryItems = <>
      DataController.Summary.SummaryGroups = <>
      OptionsCustomize.ColumnFiltering = False
      OptionsView.ColumnAutoWidth = True
      OptionsView.GroupByBox = False
      Styles.IncSearch = DMInv.cxKrasniyText
      Styles.Selection = DMInv.cxJoltiyFon
      Styles.Header = DMInv.cxSiniyText
      Styles.BandHeader = DMInv.cxSiniyText
      Bands = <
        item
          Width = 221
        end
        item
          Caption = #1044#1077#1090#1089#1082#1080#1081' '#1089#1072#1076' ('#1076#1077#1090#1080' 1-3 '#1075#1086#1076#1072')'
          Width = 100
        end
        item
          Caption = #1044#1077#1090#1089#1082#1080#1081' '#1089#1072#1076' ('#1076#1077#1090#1080' 3-6 '#1083#1077#1090')'
          Width = 112
        end
        item
          Caption = #1044#1077#1090#1089#1082#1080#1081' '#1089#1072#1076' ('#1089#1086#1090#1088#1091#1076#1085#1080#1082#1080')'
          Width = 113
        end
        item
          Caption = #1053#1072#1095'. '#1096#1082#1086#1083#1072' ('#1076#1077#1090#1080')'
          Width = 100
        end
        item
          Caption = #1053#1072#1095'. '#1096#1082#1086#1083#1072' ('#1089#1086#1090#1088#1091#1076#1085#1080#1082#1080')'
          Width = 112
        end
        item
          Caption = #1057#1088'. '#1096#1082#1086#1083#1072' ('#1076#1077#1090#1080')'
          Width = 112
        end
        item
          Caption = #1057#1088'. '#1096#1082#1086#1083#1072' ('#1089#1086#1090#1088#1091#1076#1085#1080#1082#1080')'
          Width = 113
        end
        item
          Caption = #1057#1086#1090#1088#1091#1076#1085#1080#1082#1080
          Width = 58
        end>
      object tvmenuIDFACTORP: TcxGridDBBandedColumn
        Caption = #8470
        DataBinding.FieldName = 'IDFACTORP'
        Options.Editing = False
        Position.BandIndex = 0
        Position.ColIndex = 0
        Position.RowIndex = 0
      end
      object tvmenuGR: TcxGridDBBandedColumn
        Caption = #1055#1088#1080#1077#1084' '#1087#1080#1097#1080
        DataBinding.FieldName = 'GR'
        Options.Editing = False
        Position.BandIndex = 0
        Position.ColIndex = 1
        Position.RowIndex = 0
      end
      object tvmenuFGROUP1A: TcxGridDBBandedColumn
        Caption = #1040' - '#1088#1077#1079#1077#1088#1074
        DataBinding.FieldName = 'FGROUP1A'
        Position.BandIndex = 1
        Position.ColIndex = 0
        Position.RowIndex = 0
      end
      object tvmenuFGROUP1B: TcxGridDBBandedColumn
        Caption = #1042' - '#1082#1086#1101#1092#1092#1080#1094#1080#1077#1085#1090' '
        DataBinding.FieldName = 'FGROUP1B'
        Position.BandIndex = 1
        Position.ColIndex = 1
        Position.RowIndex = 0
      end
      object tvmenuFGROUP1N: TcxGridDBBandedColumn
        Caption = 'n - '#1082#1086#1083#1080#1095#1077#1089#1090#1074#1086' '#1076#1085#1077#1081
        DataBinding.FieldName = 'FGROUP1N'
        Position.BandIndex = 1
        Position.ColIndex = 2
        Position.RowIndex = 0
      end
      object tvmenuFGROUP2A: TcxGridDBBandedColumn
        Caption = #1040' - '#1088#1077#1079#1077#1088#1074
        DataBinding.FieldName = 'FGROUP2A'
        Position.BandIndex = 2
        Position.ColIndex = 0
        Position.RowIndex = 0
      end
      object tvmenuFGROUP2B: TcxGridDBBandedColumn
        Caption = #1042' - '#1082#1086#1101#1092#1092#1080#1094#1080#1077#1085#1090' '
        DataBinding.FieldName = 'FGROUP2B'
        Position.BandIndex = 2
        Position.ColIndex = 1
        Position.RowIndex = 0
      end
      object tvmenuFGROUP2N: TcxGridDBBandedColumn
        Caption = 'n - '#1082#1086#1083#1080#1095#1077#1089#1090#1074#1086' '#1076#1085#1077#1081
        DataBinding.FieldName = 'FGROUP2N'
        Position.BandIndex = 2
        Position.ColIndex = 2
        Position.RowIndex = 0
      end
      object tvmenuFGROUP3A: TcxGridDBBandedColumn
        Caption = #1040' - '#1088#1077#1079#1077#1088#1074
        DataBinding.FieldName = 'FGROUP3A'
        Position.BandIndex = 4
        Position.ColIndex = 0
        Position.RowIndex = 0
      end
      object tvmenuFGROUP3B: TcxGridDBBandedColumn
        Caption = #1042' - '#1082#1086#1101#1092#1092#1080#1094#1080#1077#1085#1090' '
        DataBinding.FieldName = 'FGROUP3B'
        Position.BandIndex = 4
        Position.ColIndex = 1
        Position.RowIndex = 0
      end
      object tvmenuFGROUP3N: TcxGridDBBandedColumn
        Caption = 'n - '#1082#1086#1083#1080#1095#1077#1089#1090#1074#1086' '#1076#1085#1077#1081
        DataBinding.FieldName = 'FGROUP3N'
        Position.BandIndex = 4
        Position.ColIndex = 2
        Position.RowIndex = 0
      end
      object tvmenuFGROUP4A: TcxGridDBBandedColumn
        Caption = #1040' - '#1088#1077#1079#1077#1088#1074
        DataBinding.FieldName = 'FGROUP4A'
        Position.BandIndex = 6
        Position.ColIndex = 0
        Position.RowIndex = 0
      end
      object tvmenuFGROUP4B: TcxGridDBBandedColumn
        Caption = #1042' - '#1082#1086#1101#1092#1092#1080#1094#1080#1077#1085#1090' '
        DataBinding.FieldName = 'FGROUP4B'
        Position.BandIndex = 6
        Position.ColIndex = 1
        Position.RowIndex = 0
      end
      object tvmenuFGROUP4N: TcxGridDBBandedColumn
        Caption = 'n - '#1082#1086#1083#1080#1095#1077#1089#1090#1074#1086' '#1076#1085#1077#1081
        DataBinding.FieldName = 'FGROUP4N'
        Position.BandIndex = 6
        Position.ColIndex = 2
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5A: TcxGridDBBandedColumn
        Caption = #1040' - '#1088#1077#1079#1077#1088#1074
        DataBinding.FieldName = 'FGROUP5A'
        Position.BandIndex = 8
        Position.ColIndex = 0
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5B: TcxGridDBBandedColumn
        Caption = #1042' - '#1082#1086#1101#1092#1092#1080#1094#1080#1077#1085#1090' '
        DataBinding.FieldName = 'FGROUP5B'
        Position.BandIndex = 8
        Position.ColIndex = 1
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5N: TcxGridDBBandedColumn
        Caption = 'n - '#1082#1086#1083#1080#1095#1077#1089#1090#1074#1086' '#1076#1085#1077#1081
        DataBinding.FieldName = 'FGROUP5N'
        Position.BandIndex = 8
        Position.ColIndex = 2
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5A1: TcxGridDBBandedColumn
        Caption = #1040' - '#1088#1077#1079#1077#1088#1074
        DataBinding.FieldName = 'FGROUP5A1'
        Position.BandIndex = 3
        Position.ColIndex = 0
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5B1: TcxGridDBBandedColumn
        Caption = #1042' - '#1082#1086#1101#1092#1092#1080#1094#1080#1077#1085#1090' '
        DataBinding.FieldName = 'FGROUP5B1'
        Position.BandIndex = 3
        Position.ColIndex = 1
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5N1: TcxGridDBBandedColumn
        Caption = 'n - '#1082#1086#1083#1080#1095#1077#1089#1090#1074#1086' '#1076#1085#1077#1081
        DataBinding.FieldName = 'FGROUP5N1'
        Position.BandIndex = 3
        Position.ColIndex = 2
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5A3: TcxGridDBBandedColumn
        Caption = #1040' - '#1088#1077#1079#1077#1088#1074
        DataBinding.FieldName = 'FGROUP5A3'
        Position.BandIndex = 5
        Position.ColIndex = 0
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5B3: TcxGridDBBandedColumn
        Caption = #1042' - '#1082#1086#1101#1092#1092#1080#1094#1080#1077#1085#1090' '
        DataBinding.FieldName = 'FGROUP5B3'
        Position.BandIndex = 5
        Position.ColIndex = 1
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5N3: TcxGridDBBandedColumn
        Caption = 'n - '#1082#1086#1083#1080#1095#1077#1089#1090#1074#1086' '#1076#1085#1077#1081
        DataBinding.FieldName = 'FGROUP5N3'
        Position.BandIndex = 5
        Position.ColIndex = 2
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5A4: TcxGridDBBandedColumn
        Caption = #1040' - '#1088#1077#1079#1077#1088#1074
        DataBinding.FieldName = 'FGROUP5A4'
        Position.BandIndex = 7
        Position.ColIndex = 0
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5B4: TcxGridDBBandedColumn
        Caption = #1042' - '#1082#1086#1101#1092#1092#1080#1094#1080#1077#1085#1090' '
        DataBinding.FieldName = 'FGROUP5B4'
        Position.BandIndex = 7
        Position.ColIndex = 1
        Position.RowIndex = 0
      end
      object tvmenuFGROUP5N4: TcxGridDBBandedColumn
        Caption = 'n - '#1082#1086#1083#1080#1095#1077#1089#1090#1074#1086' '#1076#1085#1077#1081
        DataBinding.FieldName = 'FGROUP5N4'
        Position.BandIndex = 7
        Position.ColIndex = 2
        Position.RowIndex = 0
      end
    end
    object cxGridLevel2: TcxGridLevel
      GridView = tvmenu
    end
  end
  object dsFactorp: TDataSource
    DataSet = qFactorp
    Left = 288
    Top = 152
  end
  object qFactorp: TIBQuery
    Database = DMInv.DBRead
    Transaction = DMInv.IBTransaction1
    CachedUpdates = True
    SQL.Strings = (
      'select fp.*,'
      '       case'
      '         when FP.typefactorp = 1 then '#39#1047#1072#1074#1090#1088#1072#1082' '#8470'1'#39
      '         when FP.typefactorp = 2 then '#39#1047#1072#1074#1090#1088#1072#1082' '#8470'2'#39
      '         when FP.typefactorp = 3 then '#39#1054#1073#1077#1076#39
      '         when FP.typefactorp = 4 then '#39#1055#1086#1083#1076#1085#1080#1082#39
      '         when FP.typefactorp = 5 then '#39#1059#1078#1080#1085' '#8470'1'#39
      '         when FP.typefactorp = 6 then '#39#1059#1078#1080#1085' '#8470'2'#39
      '       end as GR'
      'from f_factorp fp')
    UpdateObject = quFactorp
    GeneratorField.Field = 'SDID'
    Left = 320
    Top = 152
    object qFactorpIDFACTORP: TIntegerField
      FieldName = 'IDFACTORP'
      Origin = '"F_FACTORP"."IDFACTORP"'
      ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
      Required = True
    end
    object qFactorpTYPEFACTORP: TIntegerField
      FieldName = 'TYPEFACTORP'
      Origin = '"F_FACTORP"."TYPEFACTORP"'
    end
    object qFactorpFGROUP1A: TIBBCDField
      FieldName = 'FGROUP1A'
      Origin = '"F_FACTORP"."FGROUP1A"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP1B: TIBBCDField
      FieldName = 'FGROUP1B'
      Origin = '"F_FACTORP"."FGROUP1B"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP1N: TIBBCDField
      FieldName = 'FGROUP1N'
      Origin = '"F_FACTORP"."FGROUP1N"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP2A: TIBBCDField
      FieldName = 'FGROUP2A'
      Origin = '"F_FACTORP"."FGROUP2A"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP2B: TIBBCDField
      FieldName = 'FGROUP2B'
      Origin = '"F_FACTORP"."FGROUP2B"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP2N: TIBBCDField
      FieldName = 'FGROUP2N'
      Origin = '"F_FACTORP"."FGROUP2N"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP3A: TIBBCDField
      FieldName = 'FGROUP3A'
      Origin = '"F_FACTORP"."FGROUP3A"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP3B: TIBBCDField
      FieldName = 'FGROUP3B'
      Origin = '"F_FACTORP"."FGROUP3B"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP3N: TIBBCDField
      FieldName = 'FGROUP3N'
      Origin = '"F_FACTORP"."FGROUP3N"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP4A: TIBBCDField
      FieldName = 'FGROUP4A'
      Origin = '"F_FACTORP"."FGROUP4A"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP4B: TIBBCDField
      FieldName = 'FGROUP4B'
      Origin = '"F_FACTORP"."FGROUP4B"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP4N: TIBBCDField
      FieldName = 'FGROUP4N'
      Origin = '"F_FACTORP"."FGROUP4N"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5A: TIBBCDField
      FieldName = 'FGROUP5A'
      Origin = '"F_FACTORP"."FGROUP5A"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5B: TIBBCDField
      FieldName = 'FGROUP5B'
      Origin = '"F_FACTORP"."FGROUP5B"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5N: TIBBCDField
      FieldName = 'FGROUP5N'
      Origin = '"F_FACTORP"."FGROUP5N"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5A1: TIBBCDField
      FieldName = 'FGROUP5A1'
      Origin = '"F_FACTORP"."FGROUP5A1"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5B1: TIBBCDField
      FieldName = 'FGROUP5B1'
      Origin = '"F_FACTORP"."FGROUP5B1"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5N1: TIBBCDField
      FieldName = 'FGROUP5N1'
      Origin = '"F_FACTORP"."FGROUP5N1"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5A3: TIBBCDField
      FieldName = 'FGROUP5A3'
      Origin = '"F_FACTORP"."FGROUP5A3"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5B3: TIBBCDField
      FieldName = 'FGROUP5B3'
      Origin = '"F_FACTORP"."FGROUP5B3"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5N3: TIBBCDField
      FieldName = 'FGROUP5N3'
      Origin = '"F_FACTORP"."FGROUP5N3"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5A4: TIBBCDField
      FieldName = 'FGROUP5A4'
      Origin = '"F_FACTORP"."FGROUP5A4"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5B4: TIBBCDField
      FieldName = 'FGROUP5B4'
      Origin = '"F_FACTORP"."FGROUP5B4"'
      Precision = 18
      Size = 2
    end
    object qFactorpFGROUP5N4: TIBBCDField
      FieldName = 'FGROUP5N4'
      Origin = '"F_FACTORP"."FGROUP5N4"'
      Precision = 18
      Size = 2
    end
    object qFactorpGR: TIBStringField
      FieldName = 'GR'
      ProviderFlags = []
      FixedChar = True
      Size = 10
    end
  end
  object quFactorp: TIBUpdateSQL
    RefreshSQL.Strings = (
      'Select '
      '  IDFACTORP,'
      '  TYPEFACTORP,'
      '  FGROUP1A,'
      '  FGROUP1B,'
      '  FGROUP1N,'
      '  FGROUP2A,'
      '  FGROUP2B,'
      '  FGROUP2N,'
      '  FGROUP3A,'
      '  FGROUP3B,'
      '  FGROUP3N,'
      '  FGROUP4A,'
      '  FGROUP4B,'
      '  FGROUP4N,'
      '  FGROUP5A,'
      '  FGROUP5B,'
      '  FGROUP5N,'
      '  FGROUP5A1,'
      '  FGROUP5B1,'
      '  FGROUP5N1,'
      '  FGROUP5A3,'
      '  FGROUP5B3,'
      '  FGROUP5N3,'
      '  FGROUP5A4,'
      '  FGROUP5B4,'
      '  FGROUP5N4,'
      '  GR'
      'from f_factorp '
      'where'
      '  IDFACTORP = :IDFACTORP')
    ModifySQL.Strings = (
      'update f_factorp'
      'set'
      '  FGROUP1A = :FGROUP1A,'
      '  FGROUP1B = :FGROUP1B,'
      '  FGROUP1N = :FGROUP1N,'
      '  FGROUP2A = :FGROUP2A,'
      '  FGROUP2B = :FGROUP2B,'
      '  FGROUP2N = :FGROUP2N,'
      '  FGROUP3A = :FGROUP3A,'
      '  FGROUP3B = :FGROUP3B,'
      '  FGROUP3N = :FGROUP3N,'
      '  FGROUP4A = :FGROUP4A,'
      '  FGROUP4B = :FGROUP4B,'
      '  FGROUP4N = :FGROUP4N,'
      '  FGROUP5A = :FGROUP5A,'
      '  FGROUP5A1 = :FGROUP5A1,'
      '  FGROUP5A3 = :FGROUP5A3,'
      '  FGROUP5A4 = :FGROUP5A4,'
      '  FGROUP5B = :FGROUP5B,'
      '  FGROUP5B1 = :FGROUP5B1,'
      '  FGROUP5B3 = :FGROUP5B3,'
      '  FGROUP5B4 = :FGROUP5B4,'
      '  FGROUP5N = :FGROUP5N,'
      '  FGROUP5N1 = :FGROUP5N1,'
      '  FGROUP5N3 = :FGROUP5N3,'
      '  FGROUP5N4 = :FGROUP5N4'
      'where'
      '  IDFACTORP = :OLD_IDFACTORP')
    InsertSQL.Strings = (
      'insert into f_factorp'
      
        '  (FGROUP1A, FGROUP1B, FGROUP1N, FGROUP2A, FGROUP2B, FGROUP2N, F' +
        'GROUP3A, '
      
        '   FGROUP3B, FGROUP3N, FGROUP4A, FGROUP4B, FGROUP4N, FGROUP5A, F' +
        'GROUP5A1, '
      
        '   FGROUP5A3, FGROUP5A4, FGROUP5B, FGROUP5B1, FGROUP5B3, FGROUP5' +
        'B4, FGROUP5N, '
      '   FGROUP5N1, FGROUP5N3, FGROUP5N4)'
      'values'
      
        '  (:FGROUP1A, :FGROUP1B, :FGROUP1N, :FGROUP2A, :FGROUP2B, :FGROU' +
        'P2N, :FGROUP3A, '
      
        '   :FGROUP3B, :FGROUP3N, :FGROUP4A, :FGROUP4B, :FGROUP4N, :FGROU' +
        'P5A, :FGROUP5A1, '
      
        '   :FGROUP5A3, :FGROUP5A4, :FGROUP5B, :FGROUP5B1, :FGROUP5B3, :F' +
        'GROUP5B4, '
      '   :FGROUP5N, :FGROUP5N1, :FGROUP5N3, :FGROUP5N4)')
    DeleteSQL.Strings = (
      'delete from f_factorp'
      'where'
      '  IDFACTORP = :OLD_IDFACTORP')
    Left = 352
    Top = 152
  end
end
